package com.liugh.entity.standard;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**标准申请下载 .
 * Created by Fatao on 2018/11/2 .
 */
@Builder
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("standard_apply_download")
public class StandardDownload extends Model<StandardDownload> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private int id;

    /**
     * 对应item表的ID
     */
    @TableField("stand_item_id")
    private int standardItemId;

    /**
     * 标准名称
     */
    @TableField("stand_item_name")
    private String standardItemName;

    @TableField("stand_item_no")
    private String standardItemNo;

    /**
     * 申请人
     */
    @TableField("apply_user_no")
    private String applyUserNo;

    /**
     * 审批状态
     * 0.处理中
     * 1.已同意
     * 2.已拒绝
     * 3.加水印失败
     * 4.已过期
     */
    @TableField("status")
    private int status;

    /**
     * 申请时间
     */
    @TableField("apply_time")
    private Date applyTime;

    /**
     * 审批人
     */
    @TableField("approve_no")
    private String approveNo;

    /**
     * 审批时间
     */
    @TableField("approve_time")
    private Date approveTime;

    /**
     * 文件经过加水印之后的存放位置
     */
    @TableField("apply_dir")
    private String applyDir;

    @TableField(exist = false)
    private String applyUserName;

    @TableField(exist = false)
    private String approveUserName;



    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
